import Login from '@/views/login/indexView.vue'
export function debounce(callback: Function, time: number) {
  // 闭包  用来存储定时器
  let timer: number
  return function (this: any, ...args: any[]) {
    clearTimeout(timer)
    timer = setTimeout(() => {
      callback.apply(this, args)
    }, time)
  }
}
